package com.axdoc;

public class AddIllness {
	private String illnessStr;
	private String diseaseStr;
	
	public String getIllnessStr() {
		return illnessStr;
	}
	public void setIllnessStr(String illnessStr) {
		this.illnessStr = illnessStr;
	}
	public String getDiseaseStr() {
		return diseaseStr;
	}
	public void setDiseaseStr(String diseaseStr) {
		this.diseaseStr = diseaseStr;
	}
	public AddIllness(String illnessStr,String diseaseStr) {
		this.illnessStr=illnessStr;
		this.diseaseStr=diseaseStr;
	}
	@Override
	public boolean equals(Object obj) {
		AddIllness illness =(AddIllness)obj;
		return illness.getDiseaseStr().equals(diseaseStr)&&illness.getIllnessStr()==illnessStr;
	}
	@Override
	public String toString() {
		return "illnessStr=" + illnessStr + ", diseaseStr=" + diseaseStr ;
	}
	
}
